package com.mz.entity;

import java.util.Date;

import com.baomidou.mybatisplus.annotation.*;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import lombok.Data;
import lombok.experimental.Accessors;

import java.io.Serializable;

/**
 * (OmsOrderGoods)表实体类
 *
 * @author makejava
 * @since 2023-12-13 13:38:29
 */
@Data
@Accessors(chain = true)
public class OmsOrderGoods  {

    @TableId( type= IdType.ASSIGN_ID )
    private Long id;
    //订单id
    private Long orderId;
    private Long productId;
    //商品图片
    private String productImg;
    //商品名称
    private String productName;
    //商品原价
    private Integer productPrice;
    //实际售卖价格
    private Integer productActualPrice;


    //数量
    private Integer productAmount;
    //总价
    private Integer productAmountPrice;

    @TableLogic
    private Integer delFlag;
    //创建时间
    @TableField( fill = FieldFill.INSERT_UPDATE)
    private Date createTime;

    private Long createBy;

    @TableField( fill = FieldFill.UPDATE)
    private Date updateTime;

    private Long updateBy;


}

